<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * WechatAgentCode
 * 带参二维码及其绑定关系表
 *
 * @ORM\Table(name="wechat_agent_code")
 * @ORM\Entity
 */
class WechatAgentCode
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="code", type="integer", nullable=false, options={"comment"="微信带参二维码编号"})
     */
    private $code;

    /**
     * @var int
     *
     * @ORM\Column(name="user_id", type="integer", nullable=false, options={"comment"="用户ID"})
     */
    private $userId;

    /**
     * @var int
     *
     * @ORM\Column(name="agent_id", type="integer", nullable=false, options={"comment"="渠道ID"})
     */
    private $agentId;

    /**
     * @var int|null
     *
     * @ORM\Column(name="add_time", type="integer", nullable=true)
     */
    private $addTime;

    /**
     * @var string|null
     *
     * @ORM\Column(name="add_date", type="string", length=32, nullable=true)
     */
    private $addDate;

    /**
     * @var int|null
     *
     * @ORM\Column(name="last_time", type="integer", nullable=true)
     */
    private $lastTime;

    /**
     * @var string|null
     *
     * @ORM\Column(name="last_date", type="string", length=32, nullable=true)
     */
    private $lastDate;

    /**
     * @var int
     *
     * @ORM\Column(name="status", type="integer", nullable=false, options={"default"="1"})
     */
    private $status = '1';

    /**
     * @var string|null
     *
     * @ORM\Column(name="flag", type="string", length=255, nullable=true)
     */
    private $flag;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getCode(): ?int
    {
        return $this->code;
    }

    public function setCode(int $code): self
    {
        $this->code = $code;

        return $this;
    }

    public function getUserId(): ?int
    {
        return $this->userId;
    }

    public function setUserId(int $userId): self
    {
        $this->userId = $userId;

        return $this;
    }

    public function getAgentId(): ?int
    {
        return $this->agentId;
    }

    public function setAgentId(int $agentId): self
    {
        $this->agentId = $agentId;

        return $this;
    }

    public function getAddTime(): ?int
    {
        return $this->addTime;
    }

    public function setAddTime(?int $addTime): self
    {
        $this->addTime = $addTime;

        return $this;
    }

    public function getAddDate(): ?string
    {
        return $this->addDate;
    }

    public function setAddDate(?string $addDate): self
    {
        $this->addDate = $addDate;

        return $this;
    }

    public function getLastTime(): ?int
    {
        return $this->lastTime;
    }

    public function setLastTime(?int $lastTime): self
    {
        $this->lastTime = $lastTime;

        return $this;
    }

    public function getLastDate(): ?string
    {
        return $this->lastDate;
    }

    public function setLastDate(?string $lastDate): self
    {
        $this->lastDate = $lastDate;

        return $this;
    }

    public function getStatus(): ?int
    {
        return $this->status;
    }

    public function setStatus(int $status): self
    {
        $this->status = $status;

        return $this;
    }

    public function getFlag(): ?string
    {
        return $this->flag;
    }

    public function setFlag(?string $flag): self
    {
        $this->flag = $flag;

        return $this;
    }


}
